package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户客户关系对象 user_customer_relations
 * 
 * @author ruoyi
 */
@Data
public class UserCustomerRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关系ID */
    private Long relationId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 关系类型 */
    @Excel(name = "关系类型")
    private String relationType;

    /** 是否主要负责人 */
    @Excel(name = "是否主要负责人")
    private String isPrimary;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    // 省略getter/setter方法...
    // 请使用IDE自动生成getter/setter方法

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("relationId", getRelationId())
            .append("userId", getUserId())
            .append("customerId", getCustomerId())
            .append("relationType", getRelationType())
            .append("isPrimary", getIsPrimary())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
} 